package org.example.test1;

public class Master {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void feed(Pet pet){
        System.out.println("喂"+pet.getName());
        pet.eat();
    }
}
